home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1992 July / Nautilus-3-8 / Nautilus-3-8.bin / Tools & Utilities / Techy Stuff / Frontier Scripts / string.replace < prev    next >
Encoding:
Text File  |  1992-06-12  |  363 b   |  13 lines

  1. Enclosure: replace
  2.  
  3. The enclosed script loads itself at system.verbs.builtins.string.replace.
  4.  
  5. It implements a new builtin: string.replace (s, searchfor, replacewith).
  6.  
  7. string.replace changes the first occurrence of the search string with the
  8. replace string. For example, string.replace ("abcdefg", "cd", "xxx") would
  9. return "abxxxefg".
  10.  
  11. DW
  12. Author: EL.GRANDE
  13.